import Vue from "vue"
import Vuex from "vuex" //引入vuex
Vue.use(Vuex) //使用vuex

export default new Vuex.Store({
  state:{
    user:{}
  },
  mutations:{
    setDemoValue(state,user){
      state.user = user
    }
  },
  getters:{
    getDemoValue: state => state.user
  },
  actions:{

  },
  modules:{

  }
})
